<!DOCTYPE html>
<html lang="zh-CN">
<!--家族史-->

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0,user-scalable=no,minimal-ui">
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="../img/asset-favico.ico">
    <title>健康档案详情</title>

    <link rel="stylesheet" href="../css/page-health-recordDetail.css" />
    <script src="../js/vue.js"></script>
    <script src="../js/axios-0.18.0.js"></script>
</head>

<body data-spy="scroll" data-target="#myNavbar" data-offset="150">
    <div class="app" id="kfc">
        <!-- 页面头部 -->
        <div class="top-header">
            <span class="f-left"><i class="icon-back"></i>返回</span>
            <span class="center">千锋健康</span>
            <span class="f-right"><i class="icon-more"></i></span>
        </div>
        <!-- 页面内容 -->
        <div class="contentBox">
            <div class="list-content">
                <div class="fix-info">
                    <ul class="list-unstyled ">
                        <li><span class="tit">档案号</span><span class="info">{{aaa}}</span></li>
                        <li><span class="tit">姓名</span><span class="info">{{bbb}}</span></li>
                        <li><span class="tit">兄弟姐妹状态</span><span class="info">{{ccc}}</span></li>
                        <li><span class="tit">父母状况</span><span class="info">{{ddd}}</span></li>
                        <li><span class="tit">有无家族病史</span><span class="info">{{eee}}</span></li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
    <!-- 页面 css js -->
    <!-- <script src="health-index.js"></script> -->


</body>
<script>

    new Vue({
        el:'#kfc',
        //回显的信息
        data:{
            aaa:"",
            bbb:"",
            ccc:"",
            ddd:"",
            eee:"",
        },
        create(){
            this.findById();
        },
        method: {

            //查询
            findById() {
                axios({
                    url: "/infor/first",
                    method: "get",
                }).then(resp => {
                    if (resp.data.flag) {
                        this.aaa = resp.data.data.number,
                            this.bbb = resp.data.data.name,
                            this.ccc = resp.data.data.brother,
                            this.ddd = resp.data.data.parents,
                            this.eee = resp.data.data.health

                    }
                });
            },
        }
     })
</script>
</html>